<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

////////////////////////////////////////////////////////////////
//	MVC
//		model
//		view
//		control
////////////////////////////////////////////////////////////////

//
include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'common/item.common.class.php');
include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'common/type.common.class.php');

//
include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'control/item.control.class.php');

class ControlTypeBase extends ControlItemBase {
	
	//constructor
	function ControlTypeBase($config = '') {
		//
		$this->cname = 'type';
		
		//
		$this->class_file = 'type.class.php';
		$this->class_name = 'TypeBase';
		$this->class_param = '';
		
		//
		$this->tpl_type = 'admin';
		$this->tpl_file = 'pagelayout/admin/pagelayout_admin_type.tpl';
		
		//
		$this->validate_file = '';
		$this->validate_class = 'CommonValidate';
		$this->validate_fields = array('field' => 'name', 'valid' => 'null');
		
		//
		parent::ControlItemBase($config);
	}
	
	//methods
}
//
?>